/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
package org.epic.perleditor.templates.textmanipulation;


/**
 * A text region describes a certain range in an <code>ITextBuffer</code>. A region is defined by 
 * its offset into the text buffer and its length.
 * <p>
 * A region is considered a value object. Its offset or length do not change over time. </p>
 * <p>
 * <bf>NOTE:<bf> This class/interface is part of an interim API that is still under development 
 * and expected to change significantly before reaching stability. It is being made available at 
 * this early stage to solicit feedback from pioneering adopters on the understanding that any 
 * code that uses this API will almost certainly be broken (repeatedly) as the API evolves.</p>
 */

// This class avoids contamination of clients with wrong imports.

public abstract class TextRegion {
    
    /**
     * Returns the offset of the region.
     *
     * @return the offset of the region
     */
    public abstract int getOffset();
    /**
     * Returns the length of the region.
     *
     * @return the length of the region
     */
    public abstract int getLength();
    
}